package com.ytjj.qmyx.admin.service;

import com.ytjj.common.api.CommonPage;
import com.ytjj.qmyx.admin.model.FrontCategory;
import com.ytjj.qmyx.admin.model.request.FrontCategoryRequest;
import com.ytjj.qmyx.admin.model.response.FrontCategoryResponse;

import java.util.List;
import java.util.Map;

/**
 *
 * 
 * @description:
 */
public interface FrontCategoryService {

    List<FrontCategory> getCategoryByPid(FrontCategory frontCategory);

    FrontCategoryResponse getCategoryDetailById(FrontCategoryRequest frontCategoryRequest);

    int delById(Integer id);

    boolean dealExcelCategory();

    boolean bindNowCategory(Integer type);

    boolean updateNowCategory();

    /**
     * 根据categoryNow分类表的grade字段更新商品表bottom_id
     * @param :
     * @returns: String
     * 
     */
    String updateProductCategoryByGrade();

    boolean setIsHidden(Integer id,Integer status);

    boolean addCategoryFromNow();

    int addOrEditFrontCategory(FrontCategoryRequest frontCategoryRequest);

    List<Map<String,Object>> getCategoryForFront(Integer id);

    /**
     * 根据类型获取专栏类别
     *
     * @param type
     * @return
     */
    List<FrontCategory> getFrontListByType(String type,Integer isHomeShow);
}
